package com.atguigu.prop;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class DataSourceProperties {
    @Value("spring.jdbc.datasource.driverClassName=com.mysql.cj.jdbc.driver")
    private String driverClassName;
@Value("spring.jdbc.datasource.url=jdbc:mysql:///springboot_01")
    private String url;
@Value("spring.jdbc.datasorce.username=root")
    private String username;
@Value("spring.jdbc.datasource.password=root")
    private String password;
}
